package com.yvon.maple.service.msg.sub.model.dto;

import com.alibaba.fastjson.JSONObject;
import com.yvon.maple.pojo.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 主动订阅响应参数
 *
 * @author : Yvon
 * @since : 2022-05-19
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("主动订阅响应参数")
public class SubscribeActiveDto extends BaseDTO implements Serializable {

    /**
     * 订阅ID
     */
    @ApiModelProperty(value = "订阅ID")
    private Long subscribeId;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    /**
     * 发送渠道及模板
     * 示例：{"im": 2, "sms": 3}
     * key:渠道类型,value:模板ID
     */
    @ApiModelProperty(value = "发送渠道及模板 示例：{\"im\": 2, \"sms\": 3} key:渠道类型,value:模板ID")
    private JSONObject channelTemplate;
}
